# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models
from django.conf import settings


class Migration(migrations.Migration):

    dependencies = [
        ('common', '0002_auto_20161021_1228'),
    ]

    operations = [
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name=b'\xe5\x88\x9b\xe5\xbb\xba\xe6\x97\xb6\xe9\x97\xb4')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='\u6700\u540e\u66f4\u65b0')),
                ('is_del', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('title', models.CharField(default=b'', max_length=200)),
                ('content', models.CharField(default=b'', max_length=10000)),
                ('user', models.ForeignKey(verbose_name='\u7528\u6237', to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'db_table': 'post',
            },
        ),
        migrations.CreateModel(
            name='PostTag',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name=b'\xe5\x88\x9b\xe5\xbb\xba\xe6\x97\xb6\xe9\x97\xb4')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='\u6700\u540e\u66f4\u65b0')),
                ('is_del', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('title', models.CharField(default=b'', max_length=20)),
            ],
            options={
                'db_table': 'post_tag',
            },
        ),
        migrations.CreateModel(
            name='PostWithTag',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name=b'\xe5\x88\x9b\xe5\xbb\xba\xe6\x97\xb6\xe9\x97\xb4')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='\u6700\u540e\u66f4\u65b0')),
                ('is_del', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('post', models.ForeignKey(to='common.Post')),
                ('tag', models.ForeignKey(to='common.PostTag')),
            ],
            options={
                'db_table': 'post_with_tag',
            },
        ),
        migrations.CreateModel(
            name='SystemNotice',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name=b'\xe5\x88\x9b\xe5\xbb\xba\xe6\x97\xb6\xe9\x97\xb4')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='\u6700\u540e\u66f4\u65b0')),
                ('is_del', models.BooleanField(default=False, verbose_name='\u662f\u5426\u88ab\u5220\u9664')),
                ('title', models.CharField(default=b'', max_length=200)),
                ('content', models.CharField(default=b'', max_length=10000)),
            ],
            options={
                'db_table': 'system_notice',
            },
        ),
        migrations.AlterField(
            model_name='userprofile',
            name='avatar',
            field=models.ImageField(default=b'', upload_to=b'static/user/', max_length=255, verbose_name='\u5934\u50cf'),
        ),
    ]
